Skip to content

Keep every weekly quota window and page through them - #173

Merged
czpython merged 1 commit into
mainfrom
commonzenpython/eng-809-usage-page-the-weekly-windows-instead-of-collapsing-to-the
Aug 1, 2026
Merged

Keep every weekly quota window and page through them#173
czpython merged 1 commit into
mainfrom
commonzenpython/eng-809-usage-page-the-weekly-windows-instead-of-collapsing-to-the

Conversation

@czpython

@czpython czpython commented Aug 1, 2026

Copy link
Copy Markdown
Owner

A plan can meter one model's weekly quota separately from the rest. The parser kept only the window closest to exhaustion and discarded the others, so once that model ran out the weekly meter pinned to its 0% with nothing to roll over to — and the panel announced the whole harness was out when only one model was.

Every weekly window a plan reports is now kept end to end. usage_scrapes stores them as one ordered list, /usage returns all of them, and /usage/history returns a series per window. The weekly row becomes a carousel: it opens on the window that binds, and dots show the operator there are others — one of which may still have room.

The exhaustion banner scopes its warning. An unscoped window at 0% still means new runs on that harness will fail; a window metered to one model says so, and names the model.

The five-hour meter is unchanged: singular, unscoped, fixed above the weekly row.

Migration b6d9e2c4f8a1 folds the three week_* columns into weeks and reverses.

Closes ENG-809.

@czpython
czpython force-pushed the commonzenpython/eng-809-usage-page-the-weekly-windows-instead-of-collapsing-to-the branch from 2f87dda to cce7ae1 Compare August 1, 2026 20:38
@czpython
czpython force-pushed the commonzenpython/eng-809-usage-page-the-weekly-windows-instead-of-collapsing-to-the branch from cce7ae1 to f262d7f Compare August 1, 2026 20:44
@czpython
czpython merged commit 581a3a8 into main Aug 1, 2026
2 checks passed
@czpython
czpython deleted the commonzenpython/eng-809-usage-page-the-weekly-windows-instead-of-collapsing-to-the branch August 1, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant